<div style="margin-bottom:20px">Iš <%=Question.count(:all)%> Seime svarstytų klausimų, <%=@questions.size%> atitinka paieškos kriterijus.</div>
<table style="width:98%;">
    <col width="3%"/>
    <col width="12%"/>
    <col width="85%"/>
<%@questions.each do |q|%>
    <tr style="border-top: 1px solid #1695A3">
      <td style="padding-bottom:15px;padding-top:5px;">
      <%
          aye = PoliticalGroupVote.sum(:action_yes, :conditions=>{:question_id => q.id})
          nay = PoliticalGroupVote.sum(:action_no, :conditions=>{:question_id => q.id})
      %>
      <%= sparkline_tag [aye * 100.0 / (aye + nay)],
        :type => 'pie',
        :diameter => 18,
        :share_color => '#1695A3',
        :remain_color => '#F3FFE2' %>
      </td>

      <td style="padding-bottom:15px;padding-top:5px;text-align: center;"><%=h q.sitting.date%></td>
      <td style="padding-bottom:15px;padding-top:5px;"><%=h q.formulation%></td>
    <tr>
<%end%>
</table>